package com.zn.web.dto;

/**
 * @author YinJiaWei
 * @version 2018/10/29 13:30
 */
public class OptionTradeDto {
    private String targetCode;
    private String contractMonthName;

    /**客户uuid**/
    private String customerId;
    /**合约Code**/
    private String contraceCode;
    /**手数**/
    private Integer volume;
    /**多空方向**/
    private String direction;
    /**开平方向**/
    private String offsetFlag;
    /**委托价格**/
    private Double limitPrice;
    /**唯一识别号处理幂等性问题**/
    private String idempotency;
    /**开仓委托编号**/
    private String openOrderRef;
    /**订单类型：1-持仓 2-委托 3-平仓**/
    private Integer reqsOrderType;
    /**创建时间**/
    private String createTime;
    /**开始时间**/
    private String beginCreateTime;
    /**结束时间**/
    private String endCreateTime;
    private Integer	pageNum = 0;// 当前页码
    private Integer pageSize = 20;// 当前页条数

    public String getTargetCode() {
        return targetCode;
    }

    public void setTargetCode(String targetCode) {
        this.targetCode = targetCode;
    }

    public String getContractMonthName() {
        return contractMonthName;
    }

    public void setContractMonthName(String contractMonthName) {
        this.contractMonthName = contractMonthName;
    }



    public String getCustomerId() {
        return customerId;
    }

    public void setCustomerId(String customerId) {
        this.customerId = customerId;
    }

    public String getContraceCode() {
        return contraceCode;
    }

    public void setContraceCode(String contraceCode) {
        this.contraceCode = contraceCode;
    }

    public Integer getVolume() {
        return volume;
    }

    public void setVolume(Integer volume) {
        this.volume = volume;
    }

    public String getDirection() {
        return direction;
    }

    public void setDirection(String direction) {
        this.direction = direction;
    }

    public String getOffsetFlag() {
        return offsetFlag;
    }

    public void setOffsetFlag(String offsetFlag) {
        this.offsetFlag = offsetFlag;
    }

    public Double getLimitPrice() {
        return limitPrice;
    }

    public void setLimitPrice(Double limitPrice) {
        this.limitPrice = limitPrice;
    }

    public String getIdempotency() {
        return idempotency;
    }

    public void setIdempotency(String idempotency) {
        this.idempotency = idempotency;
    }

    public String getOpenOrderRef() {
        return openOrderRef;
    }

    public void setOpenOrderRef(String openOrderRef) {
        this.openOrderRef = openOrderRef;
    }

    public Integer getReqsOrderType() {
        return reqsOrderType;
    }

    public void setReqsOrderType(Integer reqsOrderType) {
        this.reqsOrderType = reqsOrderType;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getBeginCreateTime() {
        return beginCreateTime;
    }

    public void setBeginCreateTime(String beginCreateTime) {
        this.beginCreateTime = beginCreateTime;
    }

    public String getEndCreateTime() {
        return endCreateTime;
    }

    public void setEndCreateTime(String endCreateTime) {
        this.endCreateTime = endCreateTime;
    }
    public Integer getPageNum() {
        return pageNum;
    }
    public void setPageNum(Integer pageNum) {
        if(pageNum != null && pageNum >=1){// 当前页
            this.pageNum = (pageNum - 1 )*20;
        }else{
            this.pageNum = pageNum;
        }

    }
    public Integer getPageSize() {
        return pageSize;
    }
    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }
}
